home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILSTEM / UTIL2.LZH / PUSH-POP.DOC < prev    next >
Text File  |  1986-11-05  |  3KB  |  59 lines

  1.  
  2.  
  3.                    HOW  TO  USE  PUSHDIR.COM  &  POPDIR.COM
  4.  
  5.          Getting back to where you started is a problem with PATH, but 
  6.          with PUSHDIR and POPDIR you can stack directories like cordwood.  
  7.          Wouldn't it be nice if you could just type a simple name from 
  8.          anywhere on your hard disk, and your favorite program would run 
  9.          automatically regardless of which directory it was in, then 
  10.          return you to where you started?  PUSHDIR and POPDIR let you do 
  11.          just that.  They provide some helpful batch file functions for 
  12.          switching directories automatically, going beyond the limitations 
  13.          of the DOS PATH command.  
  14.  
  15.          The author of this utility program is John Friend, an independent 
  16.          software developer and consultant.  He is the author of PC-OUTLINE.  
  17.          The ASSEMBLY and BASIC source codes to make PUSHDIR.COM and 
  18.          POPDIR.COM appeared in the May 27, 1986 issue of PC Magazine, 
  19.          Volume 5, Number 10.  
  20.  
  21.          USING PUSHDIR.COM and POPDIR.COM - To use these two utilities to 
  22.          invoke any program (1-2-3 as an example) from anywhere on your 
  23.          hard disk, here's what you do:
  24.  
  25.             1. Create a batch file called 12.BAT with the following 
  26.                instructions:
  27.                     PUSHDIR         (save the current directory)
  28.                     CD\LOTUS        (change to LOTUS directory)
  29.                     123             (start 1-2-3)
  30.                     POPDIR          (restore original directory)
  31.  
  32.             2. Set the DOS PATH command in your AUTOEXEC.BAT file to 
  33.                include the directory in which you keep the above batch 
  34.                file and also to include the directory where PUSHDIR.COM 
  35.                and POPDIR.COM reside.
  36.  
  37.             3. Type 12<ENTER> from anywhere on your hard disk and 1-2-3 
  38.                will start.
  39.  
  40.          The DOS PATH command will find the 12.BAT file and start executing 
  41.          it.  PUSHDIR will save the current directory; CD\LOTUS will switch 
  42.          to the LOTUS directory; and 123 will start execution of 1-2-3.  
  43.          When 1-2-3 is finished, POPDIR will restore the original current 
  44.          directory, so you'll be back in the same directory you were in 
  45.          before you entered 1-2-3.
  46.  
  47.          To use this same technique for other programs, simply create batch 
  48.          files (usually all placed in the same directory) and substitute 
  49.          the appropriate names for the desired current directory ( in place 
  50.          of LOTUS) and the program name (in place of 123).  
  51.          
  52.          To get the complete story, see the article, which starts on page 
  53.          243 of the above mentioned issue of PC Magazine.
  54.  
  55.          To print this file, set the printer to the top of the page and 
  56.          enter the following command:
  57.          
  58.                 A>copy PUSH-POP.DOC prn
  59.